//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "fn_close.sqf"
#include <btc_macros.h>
TRACE_1("Start",_this);

BTC_r_chosen = true;
titleText ["", "BLACK OUT"];
if (BTC_r_dlg_type == 0) then {
	BTC_r_base_spawn setPos (markerPos BTC_respawn_marker);
	player setVelocity [0,0,0];
	player attachTo [BTC_r_base_spawn,[0,0,0]];
	sleep 0.1;
	detach player;
	player setPos getMarkerPos BTC_respawn_marker;
	sleep 0.5;
	player switchMove "amovpercmstpsraswrfldnon";
	titleText ["", "BLACK FADED"];
	titleText ["", "BLACK IN"];
};
sleep 1;
titleText ["", "PLAIN"];
TRACE("End");